package net.servir.capacidades.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class DemoController {

	@RequestMapping("/demo.htm")
	public @ModelAttribute()
	String buscarParticipante(HttpServletRequest request) {
		
		HttpSession sesion = request.getSession();
		String cod_sistema="";
		
		if (request.getParameter("idSistema") != null)
			cod_sistema = request.getParameter("idSistema");
		
		sesion.setAttribute("idSistema", cod_sistema);
		return "";
	}
}
